//
//  FLInterfaceParam.m
//  Pods
//
//  Created by LinXiaoBin on 16/3/16.
//
//

#import "FLInterfaceParam.h"
#import <UIKit/UIKit.h>

static FLPID currentPID = FLPID_Unknown;

@implementation FLInterfaceParam

+ (FLPID)pid
{
    NSAssert(currentPID != FLPID_Unknown, @"未知PID");
    
    return currentPID;
}

+ (void)setPid:(FLPID)pid
{
    currentPID = pid;
}

+ (NSString *)pidString
{
    return [NSString stringWithFormat:@"%zd", [self pid]];
}

+ (NSString *)mt {
    return @"1";
}

+ (NSString *)divideVersion {
    return [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"];
}

+ (NSString *)supPhone {
#if 0//TARGET_OS_SIMULATOR
#warning 测试机型
    return @"iPhone5,1";
#endif
    // FIXME: ZYT 版本号
    return @"";
}

+ (NSString *)supFirm {
#if 0//TARGET_OS_SIMULATOR
#warning 测试固件
    return @"8.0";
#endif
    // FIXME: ZYT 版本号
    return @"";
}

+ (NSString *)imei {
    // FIXME: ZYT imei
    return @"";
}

+ (NSString *)imsi {
    // FIXME: ZYT 机型
    return @"";
}

+ (NSString *)resolution {
    CGSize size = [UIScreen mainScreen].bounds.size;
    float scale = [UIScreen mainScreen].scale;
    return [NSString stringWithFormat:@"%.fX%.f", size.width*scale, size.height*scale];
}

+ (NSString *)currentLanguage {
    // FIXME: ZYT 语言
    return @"";
}

@end
